namespace RBAC.Read.Api.Application.Dto.Dashboard
{
    public class PendingApprovalCountsDto
    {
        public int PurchaseOrders { get; set; }
        public int SalesOrders { get; set; }
        public int ReturnNotices { get; set; }
        public int InboundOrders { get; set; }
        public int OutboundOrders { get; set; }
        public int BillingNotices { get; set; }
        public int Requisitions { get; set; } // 若无请购表，返回0

        public int Total => PurchaseOrders + SalesOrders + ReturnNotices + InboundOrders + OutboundOrders + BillingNotices + Requisitions;
    }

    /// <summary>
    /// 本月概览统计 DTO（用于大屏卡片展示）
    /// </summary>
    public class MonthlyOverviewDto
    {
        /// <summary>
        /// 本月销售收入（以已审核开票金额为准）
        /// </summary>
        public decimal ThisMonthSalesAmount { get; set; }
        /// <summary>
        /// 本月订单数（已审批的销售订单）
        /// </summary>
        public int ThisMonthOrderCount { get; set; }
        /// <summary>
        /// 今日回款（此处以今日开票金额代替，如有回款表可替换）
        /// </summary>
        public decimal TodayCollectionAmount { get; set; }
        /// <summary>
        /// 本月采购金额（采购发票物料金额合计）
        /// </summary>
        public decimal ThisMonthPurchaseAmount { get; set; }
        /// <summary>
        /// 本月发货数量（销售出库数量合计）
        /// </summary>
        public int ThisMonthShipmentQty { get; set; }
        /// <summary>
        /// 本月库存金额（暂无库存表，先返回0，后续有库存台账可替换）
        /// </summary>
        public decimal ThisMonthInventoryAmount { get; set; }
    }
}
